/*
 * @Author: your name
 * @Date: 2022-03-29 19:33:46
 * @LastEditTime: 2022-04-08 16:37:07
 * @LastEditors: your name
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \erp_background_system\src\redux\store.js
 */

import { createStore, combineReducers,applyMiddleware } from 'redux';
import thunk from 'redux-thunk'
import {customerReducer} from './reducer/customerReducer/all';
import tableCheckReducer from './reducer/customerReducer/tableCheck';
import orderReducer from './reducer/orderReducer/orderReducer'

// 合并多个reducer
//引入自己的reducer在combineReducers里面合并
let reducer = combineReducers({tableCheckReducer,orderReducer,customerReducer})
//暴露store
export default createStore(reducer,applyMiddleware(thunk))